package Java8实战._1_并行流._3_正确使用并行流;

import Java8实战._1_并行流.ParallelStreams;
import Java8实战._1_并行流._2_测量流性能._2_测量流性能;

public class _3_正确使用并行流_2 {
    public static void main(String[] args) {
//        System.out.println(sideEffectParallelSum(5));
        System.out.println("SideEffectParallel sum done in : " +
                new _2_测量流性能().measureSumPerf(ParallelStreams::sideEffectParallelSum, 10_000_000) + " msecs"
        );
    }



}
